<%if not in_sdcms then response.write("template load fail"):response.end() end if%>
{if sdcms.is_login}
{dim userdata:userdata=sdcms.userinfo}
    <a href="/user/avatar.asp">
    <img src="{webroot}upfile/avatar/{userdata(12)}/small.jpg" align="absmiddle" border="0"></a> {userdata(13)},欢迎您　<a href="{webroot}user/">[会员中心]</a> <a href="{webroot}user/login.asp?act=out&gourl={url}">[退出登录]</a>
{else}
    游客，欢迎您　<a href="{webroot}user/login.asp?url={url}">[登录]</a> <a href="{webroot}user/reg.asp?url={url}"">[免费注册]</a> <a href="{webroot}user/getpass.asp">[忘记密码]</a>
{/if}